package cn.com.generaldata.os.pojo;

import com.sun.xml.internal.bind.CycleRecoverable;

public class ReportTypeItem implements java.io.Serializable, CycleRecoverable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7245660852624015959L;

	private String id;
	private String itemName; // 报表项目名称
	private short itemType; // 报表项目类型,0是Label、1是TextBox
	private String itemKey; // 报表项目Key
	private String itemRow; // 项目对应rowIndex，如001,002~
	private String itemCell; // 项目对应列，如F1，F2~
	private String reportTypeId; // 对应的报表类型

	public ReportTypeItem() {
		super();
	}

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		ReportTypeItem temp = new ReportTypeItem();
		temp.setId(id);
		return temp;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public short getItemType() {
		return itemType;
	}

	public void setItemType(short itemType) {
		this.itemType = itemType;
	}

	public String getItemKey() {
		return itemKey;
	}

	public void setItemKey(String itemKey) {
		this.itemKey = itemKey;
	}

	public String getItemRow() {
		return itemRow;
	}

	public void setItemRow(String itemRow) {
		this.itemRow = itemRow;
	}

	public String getItemCell() {
		return itemCell;
	}

	public void setItemCell(String itemCell) {
		this.itemCell = itemCell;
	}

	public String getReportTypeId() {
		return reportTypeId;
	}

	public ReportTypeItem(String id, String itemName, short itemType, String itemKey, String itemRow, String itemCell,
			String reportTypeId) {
		super();
		this.id = id;
		this.itemName = itemName;
		this.itemType = itemType;
		this.itemKey = itemKey;
		this.itemRow = itemRow;
		this.itemCell = itemCell;
		this.reportTypeId = reportTypeId;
	}

	public void setReportTypeId(String reportTypeId) {
		this.reportTypeId = reportTypeId;
	}

}
